package com.ruoyi.sms.domain.dto;

import lombok.Getter;
import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

/**
 * 大汉三通的基本请求数据
 *
 * @author xz
 * @date 2021-10-22 16:31
 */
@Getter
public class Dh3tBaseReqDTO {
    private String account;
    private String password;

    public void setAccount(String account) {
        this.account = account;
    }

    public void setPassword(String password) {
        this.password = DigestUtils.md5DigestAsHex(password.getBytes(StandardCharsets.UTF_8));
    }
}
